const filters = {
  /**
   *
   * @param {*} value
   * @param {*} type
   */
  nullDeal(value: string) {
    if (value === null || value === undefined) {
      return ' ';
    }
  },
  replace(strings: string, key: string, replaceKey: string): string {
    return strings.replace(key, replaceKey);
  },
  dataDealWith(val: string): string {
    if (val === '' || val === undefined || val === null) {
      val = '--';
    }
    return val;
  },
  toUpperCase(str: string): string {
    return str.toUpperCase();
  },
};
export default filters;
